/**
 *
 * @author Huang Junjie
 */

package TimeSqueeze.common;

public class DeadlineTask extends Task{

    private Time endTime;
    

	public DeadlineTask(String taskName, Time endingTime, String tag) {
		super(taskName, tag);
		setEndTime(endingTime);
	}

	@Override
	public void setEndTime(Time endingTime) {
		endTime = endingTime;
	}

	@Override
	public Time getEndTime() {
		return endTime;
	}

	@Override
	public String getTaskType() {
		return "deadline";
	}

	@Override
	public void setDone(boolean status) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean getDone() {
		// TODO Auto-generated method stub
		return false;
	}
	
	@Override
	public String printContents() {
		String allValues = (endTime.toFile() + "-" + getDescription() + "-" + getTag());
		return allValues;
	}
}